package com.imay.live.update;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/05/18 0018.
 */

public class AppUpdateModel implements Parcelable {

    /**
     * title : 1
     * desc1 : 1
     * url : https://iosapp.imay.cn/imay_live.apk
     * versionId : 7.8.5
     * desc2 : 2
     */

    private String title;
    private String desc1;
    private String url;
    private String versionId;
    private String desc2;
    private String desc3;

    public AppUpdateModel() {
        super();
    }

    protected AppUpdateModel(Parcel in) {
        title = in.readString();
        desc1 = in.readString();
        url = in.readString();
        versionId = in.readString();
        desc2 = in.readString();
        desc3 = in.readString();
    }

    public static final Creator<AppUpdateModel> CREATOR = new Creator<AppUpdateModel>() {
        @Override
        public AppUpdateModel createFromParcel(Parcel in) {
            return new AppUpdateModel(in);
        }

        @Override
        public AppUpdateModel[] newArray(int size) {
            return new AppUpdateModel[size];
        }
    };

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc1() {
        return desc1;
    }

    public void setDesc1(String desc1) {
        this.desc1 = desc1;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getDesc2() {
        return desc2;
    }

    public void setDesc2(String desc2) {
        this.desc2 = desc2;
    }

    public String getDesc3() {
        return desc3;
    }

    public void setDesc3(String desc3) {
        this.desc3 = desc3;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(title);
        dest.writeString(desc1);
        dest.writeString(url);
        dest.writeString(versionId);
        dest.writeString(desc2);
        dest.writeString(desc3);
    }
}
